package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
/**
 * <desc>
 * 广告管理实体对象。
 * <desc/>
 *
 * @createDate  2017/9/19.
 */
@ItlTables("ad")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class AdPO extends BasePO implements Serializable{

    @ItlField(value = "ad_id",logicKey = "key")
    private String adId;  //广告ID

    @ItlField("title")
    private String title;  //广告标题

    @ItlField("type")
    private Integer type;    //广告类型  1-首页，2-服务

    @ItlField("publish_state")
    private Integer publishState;  //发布状态

    @ItlField("start_time")
    private String startTime;

    @ItlField("end_time")
    private String endTime;

    @ItlField("publish_platform")
    private Integer publishPlatform;    //发布平台 1APP 2小程序

    @ItlField("system_type")
    private Integer systemType;     //广告类型：1运营 2物业

    public AdPO(String adId,String title,Integer type,Integer status){
        this.adId = adId;
        this.title = title;
        this.type = type;
        this.setStatus(status);
    }

}
